function [truecolorImage] = bayer2Truecolor(xyzrgbImage, channel)

bayerImage = reshape(xyzrgbImage(:,channel),640,480);
bayerImage=uint8(bayerImage);
bayerImage=bayerImage';
truecolorImage = demosaic(bayerImage,'bggr');

end